window.addEventListener("load", function () {
	// $(".rgTab a")
	// console.log($(".rgTab a"));
    $("#rgLogin form")[0].style.display = "block"
	$(".rgTab a").forEach((v,i) => {
		// console.log(v);
		v.addEventListener("click", function () {
			$(".rgTab a").forEach(function (item,index) {
				item.classList.remove("active");
                // console.log($("#codeForm"));
                $("#rgLogin form")[index].style.display = "none"
			});
			this.classList.add("active");
            $("#rgLogin form")[i].style.display = "block"
		});
	});
});
